<?php
require_once("./DButil.php");
$teacherid = $_REQUEST["teacherid"];
echo $teacherid;
// 每个老师的职务对应的权限
$sql="select teacherName,teacherId,tea.roleId,rolename,username,tea.status
      from t_teacher tea,t_role rol
      where tea.roleid=rol.roleid";
$arr=query($sql);


header("Content-Type:application/json;charset=utf-8");
echo json_encode($arr);
?>